import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import List from './components/List'
import Add from './components/Add'
function App() {
  return (
    <Router>
      <Switch>
        <Route path='/' exact component={List} ></Route>
        <Route path='/add' exact component={Add} ></Route>
      </Switch>
    </Router>
  )
}

export default App
